package com.chenyue.cm.live.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 主播点赞记录
 * </p>
 *
 * @author ljy
 * @since 2021-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdLiveAgree对象", description = "主播点赞记录")
public class JdLiveAgree extends Model<JdLiveAgree> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "主播id")
    private Integer liveId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
